﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace Storys.Collect
{
   public class SiteTable:DataTable
    {
       public const string FLDID = "fldID";
       public const string FLDNAME = "fldName";
       public const string FLDURL = "fldUrl";
       public const string FLDDESC = "fldDesc";
       public const string FLDWRITEDATE = "fldWriteDate";
       public const string FLDORDER = "fldOrder";
       public SiteTable()
       {
           CreateTable();
       }
       private void CreateTable()
       {
           this.Columns.Add(new DataColumn(FLDID, typeof(int)));
           this.Columns.Add(new DataColumn(FLDNAME, typeof(string)));
           this.Columns.Add(new DataColumn(FLDURL, typeof(string)));
           this.Columns.Add(new DataColumn(FLDDESC, typeof(string)));
           this.Columns.Add(new DataColumn(FLDWRITEDATE, typeof(DateTime)));
           this.Columns.Add(new DataColumn(FLDORDER, typeof(float)));
       }
    }
}
